Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate pallet safe mode to umbrella crate #6905

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Krayt78
Copy link
Contributor

@Krayt78 Krayt78 commented Dec 16, 2024

Part of #6504

@Krayt78 Krayt78 marked this pull request as ready for review January 5, 2025 17:39
@Krayt78 Krayt78 requested a review from a team as a code owner January 5, 2025 17:39
@re-gius re-gius added R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet. labels Jan 6, 2025
substrate/frame/safe-mode/src/lib.rs Outdated Show resolved Hide resolved
substrate/frame/safe-mode/src/mock.rs Outdated Show resolved Hide resolved
@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 6, 2025 11:51
@Krayt78 Krayt78 requested a review from re-gius January 6, 2025 11:52
substrate/frame/safe-mode/src/lib.rs Outdated Show resolved Hide resolved
substrate/frame/safe-mode/src/lib.rs Outdated Show resolved Hide resolved
BuildStorage,
use frame::{
testing_prelude::*,
traits::{Everything, IdentityLookup, InsideBoth, InstanceFilter, IsInVec},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, move to the umbrella crate everything that's used across several pallets (like IdentityLookup)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we bring the traits to their respective prelude (for example test specific ones go into the test prelude) or do we stuff everything inside the basic prelude ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-specific traits should belong only to the testing prelude

@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 7, 2025 15:19
@Krayt78 Krayt78 requested a review from re-gius January 7, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants